<?php

namespace Users\Model;

class Upload 
{
	public $id;
	public $filename;
	public $label;
	public $user_id;
	
	function exchangeArray($data)
	{
		$this->id = (isset($data['id'])) ? $data['id'] : null;
		$this->filename = (isset($data['filename'])) ?	$data['filename'] : null;
		$this->label = (isset($data['label'])) ? $data['label'] : null;
		$this->user_id = (isset($data['user_id'])) ? $data['user_id'] : null;
		//$this->users = (isset($data['users'])) ? $data['users'] : null;
		//$this->sharing = (isset($data['sharing'])) ? $data['sharig'] : null;
		
	}
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}
}

?>